import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(),
  routes:[
    {
      path:"/",
      redirect:"/goods",
      children:[
        {
          path:"goods",
          name:"goods",
          component:()=>import("../views/tabs/goods.vue"),
        },
        {
          path:"seller",
          name:"seller",
          component:()=>import("../views/tabs/seller.vue"),
        },
        {
          path:"rating",
          name:"rating",
          component:()=>import("../views/tabs/rating.vue")
        }
      ]
    }

  ]
  
})

export default router;
